
<%-- 
    Document   : lancamentos
    Created on : 06/05/2014, 00:00:20
    Author     : Adriano
--%>


<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="h" %>


<%@page contentType="text/html" pageEncoding="UTF-8"%>


<script src="resources/js/utils.js" ></script>
<form  class="allForm frmLancamento" id="FrmLancamento"  name="FrmLancamento"  >

    <fieldset class="form container lancamento">

        <div class="title">
            <span class="h1">Cadastro de Lançamento</span>
        </div>
        <div class="form-field dates">
            <label for="data">Data: </label>
            <input type="text" id="calendario" name="txtdate" class="form-control" onchange="validateData(this);" >
             <span class="validacao name"></span>
        </div>
        <div class="form-field natureza">
            <label for="natureza">Natureza:</label> 
            <select name="lstNatureza" class="form-control natureza " onchange="validateNatureza();">
                <option>Selecione a Natureza</option>
                <option value="debito">Débito</option>
                <option value="credito">Crédito</option>

            </select>
             <span class="validacao validacaoNatureza"></span>
        </div>
        <div class="form-field contaContabil">
            <label>Conta Contábil:</label> 
            <input type="text" 
                   class="form-control lancamentoContaContabil" 
                   name="txtConta"
                   id="contabil"
                   required
                   onblur="validateContaContabil(this);"/>
             <span class="validacao validacaoContaContabil"></span>
        </div>
        <div class="form-field descLancamento">
            <label>Descrição da Conta Contábil:</label> 
            <input type="text" 
                   class="form-control descContaContabil" 
                   name="txtDecricaoConta"
                   required
                   onblur="validateDescricaoContaContabil(this)"
                   />
             <span class="validacao validacaoDescLancamento"></span>
        </div> 

        <div class="form-field valorLancamento valor">
            <label>Valor:</label> 
            <input type="text" 
                   class="form-control valorLancamento valorLancamentos" 
                   name="txtValor"
                   onblur="validateValorLancamentos(this);"
                   required
                   />
             <span class="validacao validacaoValorLancamento"></span>
        </div>

        <div class="form-field saldoLancamento lancamentos">
            <label>Saldo do Lançamento:</label> 
            <input type="text" 
                   class="form-control saldoLancamento saldoLancamentos" 
                   name="txtSaldo"
                   onblur="validateSaldoLancamentos(this);"
                   required/>
             <span class="validacao validacaoSaldoLancamento"></span>
        </div>


        <div class="form-field lstHistoricoPadrao">
            <label >Histórico Padrão</label> 
            <select name="lstHistorico" class="form-control lstHistorico " onchange="validateHistoricoPadrao();">
                <option>Selecione o Histórico</option>
                <c:forEach items="${ListHistorico}" var="hist"> 
                    <option><c:out value="${hist.txtDescricao}"/></option>
                    </c:forEach>

            </select>
             <span class="validacao validacaoLstHistoricoPadrao"></span>
        </div>

        <div class="form-field complHistorico">
            <label>Complemento de Histórico:</label> 
            <input type="text" 
                   class="form-control complHistorico" 
                   name="txtComplementoHistorico"
                   required/>
             <span class="validacao validaHistorico"></span>
        </div>

        <div class="form-actions buttonsActionUser ">
            <input type="reset" id="btncancelar" class="button-black" value="Cancelar">
            <input type="button" onclick="ValidateFormLancamentos();" id="btnenviar" class="button-black"  value="Salvar">

        </div>
    </fieldset>
</form>

